package com.miyake.client.tools;

import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.i18n.shared.DirectionEstimator;
import com.google.gwt.user.client.ui.Label;

public class ClickableLabel extends Label {
	private Object userObject;
	
	public ClickableLabel(Element element) {
		super(element);
		this.setStylePrimaryName("clickableLabel");
	}

	public ClickableLabel(String text, boolean wordWrap) {
		super(text, wordWrap);
		this.setStylePrimaryName("clickableLabel");
	}

	public ClickableLabel(String text, Direction dir) {
		super(text, dir);
		this.setStylePrimaryName("clickableLabel");
	}

	public ClickableLabel(String text, DirectionEstimator directionEstimator) {
		super(text, directionEstimator);
		this.setStylePrimaryName("clickableLabel");
	}

	public ClickableLabel(String text) {
		super(text);
		this.setStylePrimaryName("clickableLabel");
	}

	public ClickableLabel() {
		super();
		this.setStylePrimaryName("clickableLabel");
	}
	public ClickableLabel(String text, ClickHandler handler) {
		super(text);
		this.setStylePrimaryName("clickableLabel");
		this.addClickHandler(handler);
	}

	public void setUserObject(Object userObject) {
		this.userObject = userObject;
	}

	public Object getUserObject() {
		return userObject;
	}

}
